package org.luckyjourney.entity.agent;

import lombok.Data;

import java.io.Serializable;

/**
 * 音色
 * @TableName agent_tone
 */
@Data
public class AgentTone implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 音色人姓名
     */
    private String toneName;

    /**
     * 商户(例如:阿里.百度.腾讯)
     */
    private String toneTrade;

    /**
     * 内地还是咨询师的音色(0为内地)
     */
    private Integer toneOutback;

    //发音人
    private String voice;

    private Long userId;

    private String toneDescribe;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 音色人姓名
     */
    public String getToneName() {
        return toneName;
    }

    /**
     * 音色人姓名
     */
    public void setToneName(String toneName) {
        this.toneName = toneName;
    }

    /**
     * 商户(例如:阿里.百度.腾讯)
     */
    public String getToneTrade() {
        return toneTrade;
    }

    /**
     * 商户(例如:阿里.百度.腾讯)
     */
    public void setToneTrade(String toneTrade) {
        this.toneTrade = toneTrade;
    }

    /**
     * 内地还是咨询师的音色(0为内地)
     */
    public Integer getToneOutback() {
        return toneOutback;
    }

    /**
     * 内地还是咨询师的音色(0为内地)
     */
    public void setToneOutback(Integer toneOutback) {
        this.toneOutback = toneOutback;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        AgentTone other = (AgentTone) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getToneName() == null ? other.getToneName() == null : this.getToneName().equals(other.getToneName()))
            && (this.getToneTrade() == null ? other.getToneTrade() == null : this.getToneTrade().equals(other.getToneTrade()))
            && (this.getToneOutback() == null ? other.getToneOutback() == null : this.getToneOutback().equals(other.getToneOutback()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getToneName() == null) ? 0 : getToneName().hashCode());
        result = prime * result + ((getToneTrade() == null) ? 0 : getToneTrade().hashCode());
        result = prime * result + ((getToneOutback() == null) ? 0 : getToneOutback().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", toneName=").append(toneName);
        sb.append(", toneTrade=").append(toneTrade);
        sb.append(", toneOutback=").append(toneOutback);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}